# 1.5 datetime模块
# https://blog.csdn.net/weixin_49346755/article/details/125268077
# datatime模块通过date类、time类、datetime类、timedelta类、timezone类等来获取或者操作时间、日期。

from datetime import date, datetime

first_dtae = datetime.strptime('2022-12-28', '%Y-%m-%d')
print(first_dtae)

print('current date: %s' % date.today())
print('formatted current date: %s' % date.today().strftime('%Y %B %d %A %H:%M:%S'))
print('formatted current datetime: %s' % datetime.today().strftime('%Y %B %d %A %H:%M:%S'))

